package com.commons.web.servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpSession;

import com.commons.po.Customer;
import com.commons.po.UserPo;

public class BaseServlet extends HttpServlet {
	protected Customer getCurrUser(HttpSession session){
		//1、前期没有做登录功能时
		return new Customer(1, "admin", "123");
		//2、后期完成了登录功能时
//		return (UserPo) session.getAttribute("userInfo");
	}
}
